package com.colter.project.sample.designpattern.vistor;

public class Test {
	public static void main(String[] args) {
		Student student = new Student();
		student.age = 18;
		student.name = "student";
		Loli loli = new Loli();
		loli.age = 12;
		loli.name = "loli";


		CommonVistor vistor = new CommonVistor();
		LargeVistor largeVistor = new LargeVistor();
		Object s1 = student.accept(vistor);
		Object s2 = student.accept(largeVistor);
		Object l1 = loli.accept(vistor);
		Object l2 = loli.accept(largeVistor);




		System.out.println(s1);
		System.out.println(s2);
		System.out.println(l1);
		System.out.println(l2);

	}
}
